package lucid.hrms.management.race;

import java.io.Serializable;

import javax.faces.model.DataModel;

public class RaceCriteria implements Serializable {
	private static final long serialVersionUID = 1L;

	private String name;

	/**
	 * The maximum page size of the Hotel result list
	 */
	private int pageSize = 5;

	/**
	 * The page the user is currently on.
	 */
	private int currentPage = 1;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public DataModel<Race> getDataModel(RaceService raceService) {
		return new RaceLazyDataModel(this, raceService);
	}
}